package com.woniuxy.driverschool.service;

import com.woniuxy.driverschool.entity.StudyTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author: xyq
 * @version: 1.0.0
 * @create: 2021/9/28 16:59
 * @description: TODO
 */
@Service
public interface StudyTimeService {
    //增添学生学时信息
    void addStudyTime(StudyTime studyTime);
    //删除学员学时信息
    void removeStudyTime(int stid);
    //修改学员学时信息
    void updateStudyTime(int oneElapsedTime,int twoElapsedTime,int threeElapsedTime,int fourElapsedTime,String student,int stid);
    //通过id查询学员学时
    StudyTime selectStudyTimeByStid(int stid);
    //分页查询学员学时
    List<StudyTime> selectAllStudyTimesByPage(StudyTime studyTime,Integer pageIndex,Integer pageSize,
                                              Date startTime, Date endTime);
    //学员学时总条数
    int selectCountStudyTimesByPage(StudyTime studyTime, Date startTime,Date endTime);
}